import request from '@/utils/request'

// export function getList(params) {
//   return request({
//     url: '/table/list',
//     method: 'get',
//     params
//   })
// }
export default {
    //医院设置列表
    getHospSetList(current,limit,serchObj){
        return request({
            url : `/admin/hosp/hosptialSet/findPage/${current}/${limit}`,
            method: 'post',
            data: serchObj //使用json形式传递
        })
    },
    //删除医院设置
    deleteHospSet(id){
        return request({
            url : `/admin/hosp/hosptialSet/${id}`,
            method: 'delete'
        })
    },
    //批量删除
    batchRemoveHospSet(idList){
        return request({
            url : `/admin/hosp/hosptialSet/batchRemove`,
            method: 'delete',
            data: idList
        })
    },
    //锁定和取消锁定
    lockHospSet(id,status){
        return request({
            url : `/admin/hosp/hosptialSet/lockHospitalSet/${id}/${status}`,
            method: 'put'
        })
    },
    //添加医院设置
    saveHospSet(hosptialSet){
        return request({
            url : `/admin/hosp/hosptialSet/saveHospitalSet`,
            method: 'post',
            data: hosptialSet
        })
    },
    //医院设置id查询
    getHospSet(id){
        return request({
            url : `/admin/hosp/hosptialSet/getHospitalSetById/${id}`,
            method: 'get'
        })
    },
    //修改医院设置
    updateHospSet(hosptialSet){
        return request({
            url : `/admin/hosp/hosptialSet/updateHospitalSet`,
            method: 'post',
            data: hosptialSet
        })
    }
}